package com.chainyoung.component_tmperson.ui.mvp.contract;

import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmperson.entity.PurseAddr;
import com.chainyoung.component_tmperson.entity.WalletDebit;
import com.chainyoung.component_tmperson.entity.WalletRepayment;

import java.util.List;
import java.util.TreeMap;

import io.reactivex.Flowable;

public interface WalletApplyDebitContract {

    interface View extends IView {


        void onGetDebitPeriodsSuccess(List<WalletDebit> data);

        void onGetDebitPeriodsFailed();

        void onGetPurposeList(List<String> data);

        void onGetDebitCredit(String data);

        void onGetRepaymentScheduleListSuccess(List<WalletRepayment> data);

        void onGetRepaymentScheduleListFailed(String data);

        void onApplyDebitSuccessed(String data);






    }

    interface Model extends IModel {


        Flowable<List<WalletDebit>> getDebitPeriodsSuccess(TreeMap<String, Object> map);

        Flowable<List<String>> getPurposeList();

        Flowable<String> getDebitCredit(TreeMap<String, Object> map);


        Flowable<List<WalletRepayment>> getRepaymentScheduleList(TreeMap<String, Object> map);

        Flowable<String> applyDebit(TreeMap<String, Object> map);



    }


}
